This block interfaces with NXTSumoEyes from
mindsensors.com
NXTSumoEyes is a Dual Range Dual Infra Red Obstacle Detector
Overview of Sensor Operation
NXTSumoEyes Sensor is able to detect obstacle in zones and ranges as
shown in
picture below.
The Short range is about 6 inches (15 cm), and Long Range is about
12 inches (about 30 cm).
This distance changes based on reflectivity of the obstacle, e.g. a
white
paper obstacle is detectable at a farther distance than a dark object.
This sensor and block can be used in several ways -
- Look for obstacle in certain zone, and block will return true if
obstacle is found in that zone. (By this method, you can use the
'Sensor on a Switch block').
- Look for obstacle in any of these zones and in your program
you can compute where it is.
- Look for obstacle in Long Range, if you find one, switch to Short
range and continue looking, if you do not find obstacle in Short range,
would indicate that obstacle is in Long Range area.
Display Settings
- The number shown on the block (3 in this case) is the port to
which
this sensor is connected. If you are connecting to a different
port, change the port number in the panel.
- This label indicates the current range for the sensor. (Long
or Short).
- The block’s data hub will open automatically when the block is
placed in the work area. You should wire the output to another block's
data hub.
Configuring the SumoEyes Block
- The Port number to which this sensor is connected.
- The range of the sensor. In Long Range mode, the sensor
will detect obstacles upto 12 inches. Where as in short range mode, the
sensor will detect obstacles closer than 6 inches.
- If an obstacle is found in this zone, the sensor will return
true.
SumoEyes Block's Data Hub Plugs
- Look in this zone - This
plug let's you select the zone in which sensor should look
for obstacle. (This will return True or False in plug 2). Use numeric
values as follows:
- Front - 0
- Right - 1
- Left - 2
- Long Range Enabled? - This
plug
lets you select the range of the sensor (TRUE for Long
Range and FALSE for Short Range).
- Obstacle found? - True
or False value of the obstacle found in the specified zone.
Zone is specified on the panel (bullet 3 shown in the panel)
- Which zone is Obstacle in? -
If the obstacle is found, the zone is returned as follows:
- Front - 0
- Right - 1
- Left - 2
- None - 3
- Is it Front? - This plug
returns true if obstacle is found in front.
- Is it Right? - This plug
returns true if obstacle is found on Right side.
- Is it Left? - This plug
returns true if obstacle is found on Left side.
- Raw Value - Value
returned from the sensor, the values are returned as
follows:
- Obstacle detected on left side: 30-36
- Obstacle detected on right side: 63-69
- Obstacle detected in front: 74-80